<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <style>
    .container {
      display: flex;
      justify-content: space-between;
      align-items: center;
      height: 400px;
    }

    .left,
    .right {
      width: 20%;
      height: 100%;
      background-color: #f34747;
      padding: 20px;
    }

    .middle {
      flex: 1;
      height: 100%;
      background-color: #427ce9;
      padding: 20px;
    }
  </style>
  <body>
    <!-- 三栏布局一般指的是页面中一共有三栏，左右两栏宽度固定，中间自适应的布局，三栏布局的具体实现： -->

    <div class="container">
      <div class="left">
        <h2>左栏</h2>
        <p>左栏内容</p>
      </div>
      <div class="middle">
        <h2>中间栏</h2>
        <p>中间栏内容</p>
      </div>
      <div class="right">
        <h2>右栏</h2>
        <p>右栏内容</p>
      </div>
    </div>
  </body>
</html>
<script></script>
